import configService from '@/common/service/config.service.js'
export const getImgUrl = (imageUrl) => {
	let url = ''
	if (imageUrl) {
		if(imageUrl.includes('[')){
			url = configService.staticDomainURL + JSON.parse(imageUrl)[0]
		}else{
			if(imageUrl.includes('/files/download')){
				url = configService.apiUrl + imageUrl
			}else{
				url = configService.staticDomainURL + imageUrl
			}
		}
		
	} else {
		url = ''
	}
	return url
}